package interfaz;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

public class DialogoBuscar extends JDialog implements ActionListener{

	
	private JLabel lblnombre,lbLibro,lbPeli;
	private JTextField txtNombre;
	private JButton bntBuscar;
	private JRadioButton rbLibro, rbPeli;
	
	
	public DialogoBuscar() {
		setSize(200, 200);
		setLayout(null);
		setResizable(true);
		setLocationRelativeTo(null);
		
		lblnombre = new JLabel("Nombre:");
		txtNombre = new JTextField("");
		bntBuscar = new JButton("Buscar");
		lbLibro = new JLabel("libro");
		lbPeli = new JLabel("Peli");
		rbLibro = new JRadioButton();
		rbPeli = new JRadioButton();
		
		lblnombre.setBounds(5, 20, 60,30); 
		txtNombre.setBounds(80, 20, 100,30);
		lbLibro.setBounds(10,60,100,30);
		rbLibro.setBounds(30,90,30,30);
		lbPeli.setBounds(120,60,100,30);
		rbPeli.setBounds(130,90,30,30);
		bntBuscar.setBounds(40, 120, 100,30);
		
		add(lblnombre);
		add(txtNombre);
		add(lbLibro);
		add(lbPeli);
		add(rbLibro);
		add(rbPeli);
		add(bntBuscar);
		
	}
	public static void main(String[] args) {
		DialogoBuscar dialogo = new DialogoBuscar();
		dialogo.setVisible(true);
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}
}
